<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="/WEB-INF/page/share/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<c:import url="/top.do"></c:import>
<%@ taglib prefix="zjf" uri="http://www.zjf.com.cn/mytag" %>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/style.css" />
	</head>
	<body>
		<div id="wrap">
			<div id="top_content"> 
				<div id="content">
					<p id="whereami">
					<html:link action="/main.do">首页</html:link>-
					<zjf:platGps plat="${data.plat}"/>-
					${data.title }
					</p>
<div align="right"><zjf:privilege value="front.reply.add"> <html:link action="/replyPubUI.do?postid=${sid}">回复此主题</html:link> </zjf:privilege></div>
<!-- 分页功能 start -->
<html:link action="/postView.do?sid=${sid}&page=1">首页</html:link>,
<c:forEach begin="${pageBean.beginPage}" end="${pageBean.endPage}" var="p">
<c:if test="${p == pageBean.nowPage}">第${p}页,</c:if>
<c:if test="${p != pageBean.nowPage}"><html:link action="/postView.do?sid=${sid}&page=${p}">第${p}页</html:link>,</c:if>
</c:forEach>
<html:link action="/postView.do?sid=${sid}&page=${pageBean.totalPage }">末页</html:link>
&nbsp;
总记录数：${pageBean.totalRecords},总页数：${pageBean.totalPage},每页显示:${pageBean.maxResult}
<!-- 分页功能 end -->
<c:if test="${pageBean.nowPage == 1}">	
					<table class="table">
			
					<tr class="table_header">
						<td>
							作者信息
							
							
						</td>
						<td>
							主题：${data.title}<br/>
							 发表时间：${data.pubDate }
							<div align="right">
							<zjf:privilege value="front.post.edit"> <html:link target="_bank" action="/postEditUI.do?sid=${sid}">编辑</html:link></zjf:privilege></div>
						</td>
					</tr>
					
					<tr class="row1">
						<td width="180" valign="top">
							${data.author.username}[${data.author.nickname }]<br/>
							${data.author.group.name}<br/>
							<c:if test="${data.author.headPic.path == null}">
							<img src="<%=request.getContextPath() %>/img/defaulthead.jpg"/><br/>
							</c:if>
							<c:if test="${data.author.headPic.path != null}">
							<img width="100" height="100" alt="${data.author.username }" src="${data.author.headPic.path}"><br/>
							</c:if>
							
							注册时间：${data.author.regDateString }<br/>
							<c:forEach items="${data.author.medals}" var="m" varStatus="i">
								<img  alt="${m.name }" src="${m.path}"><c:if test="${i.count%6==0}"><br></c:if>
							</c:forEach>
						</td>
						<td>
							${data.content}<br/><br/><br/>
							-------------个性签名-------------<br/>
							${data.author.note }
							
						</td>
					</tr>
				</table>
</c:if>
				<table class="table">
					<c:if test="${fn:length(data.replys)>0}">
					<c:forEach items="${datas}" var="data">
						<tr class="row2">
							<td>
								回复：${data.title}
								
							</td>
							<td>
								发表时间：${data.pubDate }
								<div align="right"><zjf:privilege value="front.reply.edit"> <html:link target="_bank" action="/replyEditUI.do?id=${data.id}">编辑</html:link></zjf:privilege> </div>
							</td>
						</tr>
						<tr class="row1">
							<td width="180" valign="top">
							${data.author.username}[${data.author.nickname }]<br/>
							${data.author.group.name}<br/>
							<c:if test="${data.author.headPic.path == null}">
							<img src="<%=request.getContextPath() %>/img/defaulthead.jpg"/><br/>
							</c:if>
							<c:if test="${data.author.headPic.path != null}">
							<img width="100" height="100" alt="${data.author.username }" src="${data.author.headPic.path}"><br/>
							</c:if>
							注册时间：${data.author.regDateString}
							<c:forEach items="${data.author.medals}" var="m" varStatus="i">
								<img  alt="${m.name }" src="${m.path}"><c:if test="${i.count%6==0}"><br></c:if>
							</c:forEach>
							</td>
							<td>
							${data.content}<br/><br/><br/>
							-------------个性签名-------------<br/>
							${data.author.note }
							</td>
						</tr>
						<tr height="5"><td></td><td></td></tr>
					</c:forEach>
					
					</c:if>
					
					</table>
<!-- 分页功能 start -->
<html:link action="/postView.do?sid=${sid}&page=1">首页</html:link>,
<c:forEach begin="${pageBean.beginPage}" end="${pageBean.endPage}" var="p">
<c:if test="${p == pageBean.nowPage}">第${p}页,</c:if>
<c:if test="${p != pageBean.nowPage}"><html:link action="/postView.do?sid=${sid}&page=${p}">第${p}页</html:link>,</c:if>
</c:forEach>
<html:link action="/postView.do?sid=${sid}&page=${pageBean.totalPage }">末页</html:link>
&nbsp;
总记录数：${pageBean.totalRecords},总页数：${pageBean.totalPage},每页显示:${pageBean.maxResult}
<!-- 分页功能 end -->
				<p></p>
				</div>
			</div>
	
		</div>
		<div id="wrap">
			<div id="footer">
				<div id="footer_bg">
				版权所有：赵俊夫
				<br/><html:link action="/control/main.do">后台管理</html:link>
				</div>
			</div>
		</div>
	</body>
</html>
